package com.lxd.property.pojo;

import java.io.Serializable;
import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import com.lxd.property.utils.CustomDateSerializer2;

public class Staff implements Serializable {

	private Integer id ,depaid, isoperator, state;

	private String sname, remarks, sid;

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	private Department department;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date creation, birthday, quitdate;

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	@JsonSerialize(using = CustomDateSerializer2.class)
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@JsonSerialize(using = CustomDateSerializer2.class)
	public Date getQuitdate() {
		return quitdate;
	}

	public void setQuitdate(Date quitdate) {
		this.quitdate = quitdate;
	}


	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getDepaid() {
		return depaid;
	}

	public void setDepaid(Integer depaid) {
		this.depaid = depaid;
	}

	public Integer getIsoperator() {
		return isoperator;
	}

	public void setIsoperator(Integer isoperator) {
		this.isoperator = isoperator;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}


	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@JsonSerialize(using = CustomDateSerializer2.class)
	public Date getCreation() {
		return creation;
	}

	public void setCreation(Date creation) {
		this.creation = creation;
	}

}
